/* libfake437 - a library for the rendering of code page 437 `graphics'
 * Copyright (C) 2008, 2009 Jack Kelly <endgame.dos@gmail.com>
 *
 * This library is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef FAKE437_SURFACE_HPP
#define FAKE437_SURFACE_HPP

namespace fake437 {

  class Surface {
  public:
    explicit Surface(SDL_Surface* surface);
    ~Surface(void);
    void put_char(Uint32 left, Uint32 top,
                  unsigned char ch, F437Color fg, F437Color bg);
    void put_rect(Uint32 left, Uint32 top, Uint32 width, Uint32 height,
                  unsigned char ch, F437Color fg, F437Color bg);
    void put_string(Uint32 left, Uint32 top,
                    const char* string, F437Color fg, F437Color bg);
    void put_string(Uint32 left, Uint32 top,
                    const std::string& string, F437Color fg, F437Color bg);
  private:
    F437Surface* surface;
    /* Disallow copy and assign. */
    Surface(const Surface&);
    void operator =(const Surface&);
  };

}

#endif
